package cn.quang.search.admin.mapper;

import cn.quang.search.admin.entity.po.EntityLogicTableRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author:  Entity Generator
 * @since:  2024-02-28 10:56:09
 */
public interface EntityLogicTableRelationMapper extends BaseMapper<EntityLogicTableRelation> {

    @Select(
            " SELECT * FROM entity_logic_table_relation WHERE logic_table_id = #{logicTableId} "
    )
    List<EntityLogicTableRelation> selectByLogicTableId(@Param("logicTableId") long logicTableId);

    @Select(
            " SELECT * FROM entity_logic_table_relation WHERE table_id = #{tableId} "
    )
    List<EntityLogicTableRelation> selectByTableId(@Param("tableId") long tableId);
}
